<template>
  <div class="about">
    <el-card class="about-card">
      <template #header>
        <div class="card-header">
          <h2>关于我们</h2>
        </div>
      </template>
      <div class="card-content">
        <p>这是一个使用Vue 3 + TypeScript + Vite构建的现代化项目。</p>
        <el-button type="primary" @click="goToHome">返回首页</el-button>
      </div>
    </el-card>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router'

const router = useRouter()

const goToHome = () => {
  router.push('/')
}
</script>

<style lang="scss" scoped>
.about {
  padding: 20px;
  
  .about-card {
    max-width: 600px;
    margin: 0 auto;
    
    .card-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      
      h2 {
        margin: 0;
        color: #409EFF;
      }
    }
    
    .card-content {
      text-align: center;
      padding: 20px 0;
      
      p {
        margin-bottom: 20px;
        color: #606266;
      }
    }
  }
}
</style> 